package lib.bone.nepudata.dao;

import lib.bone.nepudata.domain.entity.NepuSubject;
import org.springframework.data.jpa.repository.JpaRepository;

import javax.security.auth.Subject;
import java.util.List;
import java.util.Optional;

/**
 * @Author : cg
 * @Date : 2022-1-12
 */
public interface NepuSubjectDAO extends JpaRepository<NepuSubject,String> {
    Boolean existsBySubjectDictId(String subjectdictId);

    /**
     * 根据课题名称和负责人查询
     */
    Optional<NepuSubject> findBySubjectNameAndLeader(String subjectName,String leader);

    List<NepuSubject> findBySubjectCode(String subjectCode);

    List<NepuSubject> findByIdIn(List<String> ids);





}
